var dynamicLoading = {
		icon : function(path) {
			if (!path || path.length === 0) {
				throw new Error('argument "path" is required !');
			}
			var head = document.getElementsByTagName('head')[0];
			var link = document.createElement('link');
			link.href = path;
			link.rel="shortcut icon";
			head.appendChild(link);
		},
		png : function(path) {
			if (!path || path.length === 0) {
				throw new Error('argument "path" is required !');
			}
			var head = document.getElementsByTagName('head')[0];
			var link = document.createElement('link');
			link.href = path;
			link.rel="icon";
			link.type = 'image/png';
			head.appendChild(link);
		},
		css : function(path) {
			if (!path || path.length === 0) {
				throw new Error('argument "path" is required !');
			}
			var head = document.getElementsByTagName('head')[0];
			var link = document.createElement('link');
			link.href = path;
			link.rel = 'stylesheet';
			link.type = 'text/css';
			head.appendChild(link);
		},
		js : function(path) {
			if (!path || path.length === 0) {
				throw new Error('argument "path" is required !');
			}
			var head = document.getElementsByTagName('head')[0] || document.documentElement;  
			var script = document.createElement('script');
			script.src = path;
			script.type = 'text/javascript';
			head.insertBefore(script, head.firstChild);  
			//head.appendChild(script);
		}
	};